#ifndef _MRATE_H_
#define _MRATE_H_

#include "input_data.h"
#include "grate_config.h"

typedef const double (*FGAMMA)(const double, const double);

const double f1_gamma(const double x, const double rlen);
const double f2_gamma(const double x, const double rlen);

const double calc_mrate(const input_data & INPUT, const grate_config & CONFIG, const double grate);
const double search_mrate(const input_data & INPUT, const double grate, FGAMMA f);

#endif